  <tr valign="top">
    <td height="40" align="left" class="dato" background="/images/topHeader.gif" colspan="4">Agregar participante a <%= @event.name %></td>
  </tr>
    <tr>
     <td colspan="4" align="center" background="/images/vg.jpg"><span class="subdatos"><%= @event.eventstart.strftime("%d-%b-%Y") %> -- <%= timestring = @event.eventstart.strftime("%I:%M %p") %> -- <%= @event.cod %></td>
  </tr>
    <tr><td>&nbsp;</td></tr>

<% form_for(@eventparticipant) do |f| %>
  <%= f.error_messages %>




<%= f.hidden_field :event_idf, { :value => @event.id }   %>

  	       <tr><td>&nbsp;</td></tr>
   <tr>
  	 <td>Participante: <%= f.collection_select( :participant_idf, Participant.find(:all), :id, :name,
                     {:prompt   => "<------Seleccione------>"} )%></td>
  </tr>
  
	 
      <tr><td>&nbsp;</td></tr>

<tr>
 	<td>Proporcion : <%= f.text_field :proportion, :size => 30 %></td>
</tr>

      <tr><td>&nbsp;</td></tr>
<tr> 
 <td><%= f.radio_button :homevisitant, :casa %>Casa 
 <%= f.radio_button :homevisitant, :visitant %>Visitante </td>
</tr>
      <tr><td>&nbsp;</td></tr>
            <tr><td>&nbsp;</td></tr>

<tr>
    <td><%= f.submit 'Create' %></td>

<% end %>

<td><%= link_to 'Regresar', eventparticipants_path %></td>

</tr>